package com.seawaterbt.cloud.serverribbon.controller;

import com.seawaterbt.cloud.serverribbon.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HiService hiService;

    @GetMapping("/hello")
    public String info(@RequestParam(value = "name",defaultValue = "ym")String name){
        return hiService.invokeServerHi(name);
    }
}
